/*
 * Copyright (c) 2016 zhangcm. All Rights Reserved.
 */
package com.jnzc.ocr.serv.system.api;

import com.jnzc.ocr.serv.system.vo.DictPair;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author zhangcm
 * @version 1.0, 2017/9/17
 */
@FeignClient("serv-system")
@RequestMapping("/sysDictApi")
public interface SysDictApi {

    @PostMapping("/findPair")
    DictPair findPair(@RequestParam("code") String code, @RequestParam("pairId") Integer pairId);

    @PostMapping("/listPair")
    List<DictPair> listPair(@RequestParam("code") String code);
}
